kianRiscVでQQSPI PSRAMモジュール
QQSPI PSRAMモジュールの動作確認のため、QQSPI PSRAMを組み込んだkianRiscVを動かしたい。
kianRiscV
top.v
配線の仕方
PSRAMとOLEDをulx3sへ接続する必要がありそう。
どこに接続すれば良いのか確認する
code:kianv_harris_mcycle_edition/gateware/ulx3s_v20.lpf
LOCATE COMP "psram_cs1" SITE "B11"; # J1_5+ GP0 LOCATE COMP "psram_sclk" SITE "C11"; # J1_5- GN0
LOCATE COMP "psram_cs0" SITE "A10"; # J1_7+ GP1 LOCATE COMP "psram_miso" SITE "A11"; # J1_7- GN1
LOCATE COMP "psram_sio3" SITE "A9"; # J1_9+ GP2
LOCATE COMP "psram_mosi" SITE "B10"; # J1_9- GN2
LOCATE COMP "psram_sio2" SITE "B9"; # J1_11+ GP3
LOCATE COMP "psram_ss" SITE "C10"; # J1_11- GN3
...
IOBUF PORT "psram_cs1" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=16; IOBUF PORT "psram_cs0" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=16; IOBUF PORT "psram_sio3" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=16;
IOBUF PORT "psram_sio2" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=16;
IOBUF PORT "psram_sclk" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=16;
IOBUF PORT "psram_miso" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=16;
IOBUF PORT "psram_mosi" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=16;
IOBUF PORT "psram_ss" PULLMODE=NONE IO_TYPE=LVCMOS33 DRIVE=16;
## SPI OLED DISPLAY SSD1331 (Color) or SSD1306 (B/W) "blinkey", "usb" sheet
LOCATE COMP "oled_sck" SITE "P4";
LOCATE COMP "oled_mosi" SITE "P3";
LOCATE COMP "oled_dc" SITE "P1";
LOCATE COMP "oled_rst" SITE "P2";
LOCATE COMP "oled_cs" SITE "N2";
IOBUF PORT "oled_sck" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "oled_mosi" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "oled_dc" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "oled_rst" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;
IOBUF PORT "oled_cs" PULLMODE=UP IO_TYPE=LVCMOS33 DRIVE=4;